#include <stdio.h>

void INSERT_Arr(int arr[], int length, int x)
{
    int i = 0;
    for (i = 0; i < length; i++)
    {
        if (x < arr[i])
        {
            int temp = x;
            x = arr[i];
            arr[i] = temp;
        }
    }
    arr[i] = x;
}

int main(int argc, char const *argv[])
{

    int arr[128] = {1, 3, 5, 7, 9};
    int x = 6;
    INSERT_Arr(arr, 5, x);
    for (int j = 0; j < 6; j++)
    {
        printf("%d ", arr[j]);
    }
    printf("\n");
    return 0;
}
